package org.ru.mse10.cvis.entity.cv.custom.provider;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.util.CustomFieldValueProviderType;

/**
 * The Class CodelistCustomFieldDataProvider.
 */
@Entity
@Table(name = "codelist_custom_field_data_provider")
public class CodelistCustomFieldDataProvider extends CustomFieldValueProvider {

	/** The codelist code. */
	private String codelistCode;

	/**
	 * Gets the codelist code.
	 * 
	 * @return the codelist code
	 */
	public String getCodelistCode() {
		return codelistCode;
	}

	/**
	 * Sets the codelist code.
	 * 
	 * @param codelistCode
	 *            the new codelist code
	 */
	public void setCodelistCode(String codelistCode) {
		this.codelistCode = codelistCode;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.ru.mse10.cvis.entity.cv.custom.provider.CustomFieldValueProvider#
	 * type()
	 */
	@Override
	public CustomFieldValueProviderType type() {
		return CustomFieldValueProviderType.CL;
	}
}
